package com.wanxi.test;

public class StaticArray {
    public static void main(String[] args) {
        int[] array1 = new int[]{1, 2, 3, 4};

        int[] array2 = {1, 2, 3, 4};
        double[] array3 = {1, 2, 3, 4};
        System.out.println(array1);
        System.out.println(array2);
        System.out.println(array3);
//        以后只要是数组，第一想到的就是遍历：循环

        for (int i = 0; i < array1.length; i++) {
            System.out.println(array1[i]);
        }
    }
}
